package org.zecontech.plantvszombie.client.renderer;

import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.MobRenderer;
import net.minecraft.client.renderer.entity.state.LivingEntityRenderState;
import net.minecraft.resources.ResourceLocation;
import org.zecontech.plantvszombie.client.model.SunFlowerModel;
import org.zecontech.plantvszombie.entity.SunFlower;
import org.zecontech.plantvszombie.util.Helpers;

public class SunFlowerRenderer extends MobRenderer<SunFlower, LivingEntityRenderState, SunFlowerModel<SunFlower>> {

    public SunFlowerRenderer(EntityRendererProvider.Context context) {
        super(context, new SunFlowerModel<>(context.bakeLayer(SunFlowerModel.LAYER_LOCATION)), 0.4F);
    }

    @Override
    public ResourceLocation getTextureLocation(LivingEntityRenderState livingEntityRenderState) {
        return Helpers.identifier("textures/entity/sun_flower.png");
    }

    @Override
    public LivingEntityRenderState createRenderState() {
        return new LivingEntityRenderState();
    }
}
